home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10088 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  44 lines

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: prototype error
  5. Date: Fri, 15 Mar 96 15:28:11 GMT
  6. Organization: none
  7. Message-ID: <826903691snz@genesis.demon.co.uk>
  8. References: <4i8688$1gr@cloner4.netcom.com> <1996Mar15.084834.23743@ms.philips.nl>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <1996Mar15.084834.23743@ms.philips.nl>
  15.            Pvestjen@ms.philips.nl "Patrick Vestjens" writes:
  16.  
  17. >Sounds like you forgot to include the header file that has the
  18. >prototypes for sound, delay and nosound in it. Do you know in what
  19. >header file these are supposed to be? You can probably find out by using
  20. >the online help.
  21. >
  22. >I wonder though, did you just get the above warning or did you also get
  23. >some 'unresolved references' during the linking phase? The warning you
  24. >describe should not keep the compiler from generating an executable,
  25. >however the 'unresolved references' will.
  26.  
  27. There's no reason to assume that the linker can't link in the required
  28. library functions - declarations aren't necessary for this to happen.
  29. For instance the following is a strictly conforming program that a conforming
  30. implemenation *must* compile and execute (even it it generates some warnings):
  31.  
  32. int main(void)
  33.  
  34. {
  35.     puts("Hello, world");
  36.     return 0;
  37. }
  38.  
  39. -- 
  40. -----------------------------------------
  41. Lawrence Kirby | fred@genesis.demon.co.uk
  42. Wilts, England | 70734.126@compuserve.com
  43. -----------------------------------------
  44.